home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / C++ AppleLink Messages / AppleLink Files - 6⁄29⁄90 / Re[2] How to debug C++⁄MacApp < prev    next >
Encoding:
Text File  |  1990-06-29  |  1.6 KB  |  51 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  NOVELL.MAC   to NOVELL.ENG
  2.  
  3. Item    9710470                         29-June-90        11:02PDT
  4.  
  5. From:   X1783                           Stross, Kenner,VCA
  6.  
  7. To:     V0683                           Amoco Tech, Eric Berdahl,VAR
  8.  
  9. cc:     CPLUS.DEV$                      C++ Interest List--Developers
  10.         MACAPP.TECH$                    MacApp Technical
  11.         X1783                           Stross, Kenner,VCA
  12.  
  13. Sub:    Re[2] How to debug C++/MacApp
  14.  
  15. Eric,
  16.  
  17. Thanks for the prompt response.  I am still a little mystified, though.  You
  18. say you haven't had a problem with PascalObjects (MacApp descendents).
  19. However, those are exactly the type I am having a problem with.  Here are the
  20. approximate details (from memory):
  21.  
  22. class TMyGridView : public TTextGridView
  23. {
  24.     virtual pascal void AdornCol (rect *area)
  25. };
  26.  
  27. pascal void TMyGridView::AdornCol (rect *area)
  28. {
  29.    EnterMacAppDebugger ();
  30.     .
  31.     .
  32.     .
  33. }
  34.  
  35. The reason that I've hard coded the EnterMacAppDebugger is that the debugger
  36. fails to break on the routine when I set a breakpoint on TMyGridView.AdornCol.
  37. I tried TMyGridView::AdornCol and TMyGridView:AdornCol - it rejected both of
  38. those.
  39.  
  40. Now here's the interesting part:  When I break into the debugger and do a stack
  41. crawl with the 'S' command, it thinks that I'm in TGridView.Draw (which is the
  42. last Pascal method to have been called before my C++ virtual function).  This
  43. is what I mean about the debugger not having any visibility into my MacApp
  44. derived class functions.
  45.  
  46. Is this like what you encounter?  Any more advice?  Thanks in advance.
  47.  
  48. Kenner Stross
  49. Please respond to x1783
  50.  
  51.